
#ifndef __RESULT_BUFFER_HPP__
#define __RESULT_BUFFER_HPP__ 1

#include <iostream> 
#include <list>
#include <string>
#include <fstream> 

#define NAMEPATTERN "mr-res-%d"

using namespace std; 

class ResultBuffer 
{
private:
  int size; 
  ofstream *output;
  string namepattern; 
public:
  ResultBuffer(int, string);
  ~ResultBuffer(); 
  void addEntry(int, pair<string, string>); 
  ofstream& getStream(int); 
}; 

#endif
